printing: Make GtkPrinter have a useful icon by default
authorMatthias Clasen <mclasen@redhat.com>
Sat, 4 Oct 2014 16:19:15 +0000 (12:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Oct 2014 16:20:17 +0000 (12:20 -0400)
It causes complication elsewhere if gtk_printer_get_icon_name()
returns NULL initially. So make the icon name default to
"printer".

gtk/gtkprinter.c

index 63d327b9729946c3e9825cc4bcee01a48ea8f39e..c34eafb136f5e372c4fa939264aca94be8307deb 100644 (file)
@@ -243,7 +243,7 @@ gtk_printer_init (GtkPrinter *printer)
   priv->name = NULL;
   priv->location = NULL;
   priv->description = NULL;
-  priv->icon_name = NULL;
+  priv->icon_name = g_strdup ("printer");
 
   priv->is_active = TRUE;
   priv->is_paused = FALSE;